Skip to content

🔧 chore(data-secrecy v2): prep DataSecrecyWaiver model to be deleted #95393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025

Conversation

iamrajjoshi
Copy link
Member

Before we start building Data Secrecy V2, lets first remove the old models and logic. Currently there are no waivers being created so its safe to remove this logic.

contributes to ECO-824

Sets the org FK to not be a db constraint.

@iamrajjoshi iamrajjoshi self-assigned this Jul 11, 2025
@iamrajjoshi iamrajjoshi requested review from a team as code owners July 11, 2025 23:18
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 11, 2025
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0947_ds_waiver_org_fk_not_db_constr.py

for 0947_ds_waiver_org_fk_not_db_constr in sentry

--
-- Alter field organization on datasecrecywaiver
--
SET CONSTRAINTS "sentry_datasecrecywa_organization_id_e6f91a82_fk_sentry_or" IMMEDIATE; ALTER TABLE "sentry_datasecrecywaiver" DROP CONSTRAINT "sentry_datasecrecywa_organization_id_e6f91a82_fk_sentry_or";

Base automatically changed from raj/ds-v2/deprecate-v1/rpc to master July 14, 2025 16:22
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0948_ds_waiver_org_fk_not_db_constr.py

for 0948_ds_waiver_org_fk_not_db_constr in sentry

--
-- Alter field organization on datasecrecywaiver
--
SET CONSTRAINTS "sentry_datasecrecywa_organization_id_e6f91a82_fk_sentry_or" IMMEDIATE; ALTER TABLE "sentry_datasecrecywaiver" DROP CONSTRAINT "sentry_datasecrecywa_organization_id_e6f91a82_fk_sentry_or";

@iamrajjoshi iamrajjoshi merged commit d716511 into master Jul 14, 2025
65 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/ds-v2/deprecate-v1/delete-model-1 branch July 14, 2025 18:17
Copy link

codecov bot commented Jul 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #95393   +/-   ##
=======================================
  Coverage   76.98%   76.98%           
=======================================
  Files       10508    10508           
  Lines      606278   606278           
  Branches    23716    23716           
=======================================
+ Hits       466718   466722    +4     
+ Misses     137182   137178    -4     
  Partials     2378     2378           

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants